﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.Library.Core.Provider.Log
{
    public static class Logger
    {
        private static readonly ILogService logService = new Log4NetService();

        public static void Error(Exception ex)
        {
            logService.Error(ex);
        }
        public static void Error(string detail)
        {
            logService.Error(new Exception(detail));
        }
        public static void Info(string message)
        {
            logService.Information(message);
        }
        public static void Info(string title, string message)
        {
            logService.Information(title, message);
        }
        public static void Debug(string message)
        {
            logService.Debug(message);
        }
    }
}
